const TokenKey = 'App-Token'
const User = 'App-User'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}


export function setUser(user) {
  return uni.setStorageSync(User, user)
}

export function getUser() {
  return uni.getStorageSync(User)
}


export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}
